|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.HierarchyManager
public class HierarchyManager
Contains and manages all scenes.
| Constructor Summary | |
|---|---|
HierarchyManager()
Creates an instance of HierarchyManager. |
|
| Method Summary | |
|---|---|
HierarchyNode |
addNewScene()
Creates new blank J3DeScene object
and attaches it to this hierarchy node. |
HierarchyNode |
addNewScene(java.lang.String filePath)
Loads the J3DeScene from specified file
and attaches it to this hierarchy node. |
void |
copyFromScenes()
Forces all scenes to copy their selected objects. |
void |
cutFromScenes()
Forces all scenes to cut their selected objects. |
void |
deleteFromScenes()
Forces every scene to delete their selected objects. |
HierarchyNode |
getChild(int index)
Returns the child at the specified index. |
int |
getIndexOfChild(HierarchyNode child)
Returns the index of specified child. |
int |
getNumberOfChildren()
Returns the number of children. |
HierarchyNode[] |
getSelectedObjects()
Returns all selected scenes and objects from all scenes. |
boolean |
hasCopiedObjects()
Tests if there are any objects copied from any scene. |
protected boolean |
hasNamedChild(HierarchyNode object)
Tests if this node has child which name equals to the name of the given node. |
void |
pasteToScenes()
Forces all scenes to paste their copied/cut objects to the selected scenes. |
void |
removeScene(HierarchyNode child)
Removes the specified scene node. |
void |
removeScene(int index)
Removes the scene at the specified index. |
void |
setSelectedObjects(HierarchyNode[] objects)
Sets all selected nodes. |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
clone, equals, getIndex, getParent, getParent, getType, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchyManager()
HierarchyManager.
| Method Detail |
|---|
public HierarchyNode addNewScene()
J3DeScene object
and attaches it to this hierarchy node.
HierarchyManager
public HierarchyNode addNewScene(java.lang.String filePath)
throws java.lang.Exception
J3DeScene from specified file
and attaches it to this hierarchy node.
filePath - the path of file where the scene will be loaded from
HierarchyManager
java.lang.Exception - if loading the scene failspublic void removeScene(int index)
index - index of node which will be removedpublic void removeScene(HierarchyNode child)
child - child node to be removedpublic HierarchyNode getChild(int index)
getChild in class HierarchyNodeindex - index of child
public int getNumberOfChildren()
getNumberOfChildren in class HierarchyNodepublic int getIndexOfChild(HierarchyNode child)
getIndexOfChild in class HierarchyNodechild - child node which index will be returned
protected boolean hasNamedChild(HierarchyNode object)
hasNamedChild in class HierarchyNodeobject - node which name will be tested
true if the name of the given
node equals to the name of this node,
otherwise falsepublic void copyFromScenes()
public void cutFromScenes()
public void pasteToScenes()
public void deleteFromScenes()
public void setSelectedObjects(HierarchyNode[] objects)
objects - array of nodes to be set selectedpublic HierarchyNode[] getSelectedObjects()
public boolean hasCopiedObjects()
true if any scene has
copied objects,
otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||